﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AutomatedAcceptanceTests.PageObjects;
using TechTalk.SpecFlow;

namespace AutomatedAcceptanceTests.StepDefinitions
{
    [Binding]
    public class LogOut
    {
        MainMenuPageObject _mainMenuPageObject = new MainMenuPageObject();
        LogOutPageObject _logOutPageObject = new LogOutPageObject();

        [When(@"I press logout")]
        public void WhenIPressLogout()
        {
            _mainMenuPageObject.ClickLogOut();
        }

        [Then(@"I am successfully logged out of the system")]
        public void ThenIAmSuccessfullyLoggedOutOfTheSystem()
        {
            _logOutPageObject.AmILogedOut();
        }
    }
}
